package com.wangbo.mvc;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class UserParam {
    private Integer age;
    private String name;
    private GenderType gender;

    @JsonFormat(pattern = "yyyy-MM-dd")  // Date->String
    private Date createTime;
}
